Search results

17 packages found

APCA: the Accessible Perceptual Contrast Algorithm, a modern contrast method that improves readability contrast on self-illuminated displays. Developed for the W3C's WCAG 3 and other standards.

published 0.1.9 2 years ago
M
Q
P

Library for converting colour codes and manipulating relative luminance and contrast ratio

published 0.0.9 19 days ago
M
Q
P

Evaluate if a to colors have sufficient contrast to pass WCAG requirements.

published 1.0.3 4 months ago
M
Q
P

Delta Phi Star is a general purpose method of determining perceptual lightness contrast developed by Andrew Somers (Myndex Research), and is a sibling of APCA and SACAM. It is a simplified method using easily invertible standardized maths, however it lack

published 0.0.1 2 years ago
M
Q
P

Evaluate if a to colors have sufficient contrast to pass WCAG requirements.

published 0.2.1 5 years ago
M
Q
P

Calculate the color in an array of colors that gives the highest contrast to another color.

published 0.3.1 5 years ago
M
Q
P

A package based on WCAG 2.0 to easily check contrast ratio.

published 1.1.7 6 months ago
M
Q
P

See Stars • a lightweight set of utilities to take an sRGB or displayP3 color, and extract the CIE Y relative luminance, and then convert to CIE L* (perceptual lightness). Takes RGB colors as simple arrays (as created with colorParsley). Bonus utilities t

published 0.0.1 2 years ago
M
Q
P

Get relative luminance from a color string.

published 1.0.0 4 years ago
M
Q
P

Utility functions for working with colors in adherence to WCAG 2.1 guidelines.

published 1.0.5 8 months ago
M
Q
P

Allows you to control Hue, Saturation, and Relative Luminance as if it where a color space. Inputs are the Hue, Saturation, and Relative Luminance of a color, and output is an array of RGB values ranging from 0 to 1, 0 to 255, and a string containing the

published 1.0.0 4 months ago
M
Q
P

Calculate contrast ratio between two CSS color strings.

published 0.2.1 5 years ago
M
Q
P

helper function for WCAG contrast criterion

published 0.1.6 2 years ago
M
Q
P

Compare colors to one another. Especially useful for validating color input fields.

published 1.0.2 2 years ago
M
Q
P

For a given color, find a contrasting color (not optimal).

published 1.1.2 2 years ago
M
Q
P

SafeColor generates accessible colors that compiles with WCAG success criteria 1.4.3 (or any contrast ratio of your choice). It can generate either a random color that is contrast safe with a given color, or a consistent color for a given string.

published 1.0.1 5 years ago
M
Q
P

Helps to determine what color of text goes best for a given background, light or dark (and vice versa).

published 0.2.1 2 years ago
M
Q
P